package com.hongyuan.venue.ui.person.beans;

import java.util.List;

public class TrainningOrdersBean {


    /**
     * page : 10
     * curpage : 1
     * page_total : 1
     * list : [{"o_time":1606786795,"o_name":"培训课购买","oct_id":85,"o_state":1,"m_id":3,"o_money":"150.00","o_coupon_money":"0.00","o_id":27060,"o_pay_state":0,"ct_name":"测试课程","os_name":"爱禧孕期与产后医学运动(三墩店)","ct_type":1,"jl_name":"王萌","o_img":"http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20200708/3b00b555afa739b756cded55e554fedb73be9ec8_500x300.jpg"},{"o_time":1606786777,"o_name":"培训课购买","oct_id":84,"o_state":1,"m_id":3,"o_money":"150.00","o_coupon_money":"0.00","o_id":27059,"o_pay_state":0,"ct_name":"测试课程","os_name":"爱禧孕期与产后医学运动(三墩店)","ct_type":1,"jl_name":"王萌","o_img":"http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20200708/3b00b555afa739b756cded55e554fedb73be9ec8_500x300.jpg"}]
     */

    private int page;
    private int curpage;
    private int page_total;
    private List<ListBean> list;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getCurpage() {
        return curpage;
    }

    public void setCurpage(int curpage) {
        this.curpage = curpage;
    }

    public int getPage_total() {
        return page_total;
    }

    public void setPage_total(int page_total) {
        this.page_total = page_total;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean {
        /**
         * o_time : 1606786795
         * o_name : 培训课购买
         * oct_id : 85
         * o_state : 1
         * m_id : 3
         * o_money : 150.00
         * o_coupon_money : 0.00
         * o_id : 27060
         * o_pay_state : 0
         * ct_name : 测试课程
         * os_name : 爱禧孕期与产后医学运动(三墩店)
         * ct_type : 1
         * jl_name : 王萌
         * o_img : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20200708/3b00b555afa739b756cded55e554fedb73be9ec8_500x300.jpg
         */

        private int o_time;
        private String o_name;
        private int oct_id;
        private int o_state;
        private int m_id;
        private String o_money;
        private String o_coupon_money;
        private int o_id;
        private int o_pay_state;
        private String ct_name;
        private String os_name;
        private int ct_type;
        private String jl_name;
        private String o_img;

        public int getO_time() {
            return o_time;
        }

        public void setO_time(int o_time) {
            this.o_time = o_time;
        }

        public String getO_name() {
            return o_name;
        }

        public void setO_name(String o_name) {
            this.o_name = o_name;
        }

        public int getOct_id() {
            return oct_id;
        }

        public void setOct_id(int oct_id) {
            this.oct_id = oct_id;
        }

        public int getO_state() {
            return o_state;
        }

        public void setO_state(int o_state) {
            this.o_state = o_state;
        }

        public int getM_id() {
            return m_id;
        }

        public void setM_id(int m_id) {
            this.m_id = m_id;
        }

        public String getO_money() {
            return o_money;
        }

        public void setO_money(String o_money) {
            this.o_money = o_money;
        }

        public String getO_coupon_money() {
            return o_coupon_money;
        }

        public void setO_coupon_money(String o_coupon_money) {
            this.o_coupon_money = o_coupon_money;
        }

        public int getO_id() {
            return o_id;
        }

        public void setO_id(int o_id) {
            this.o_id = o_id;
        }

        public int getO_pay_state() {
            return o_pay_state;
        }

        public String getO_pay_stateStr() {
            if(o_pay_state == 1){
                return "未支付";
            }else if(o_pay_state == 2){
                return "已取消";
            }else if(o_pay_state == 3){
                return "已购买";
            }else if(o_pay_state == 10){
                return "已退款";
            }
            return "";
        }

        public void setO_pay_state(int o_pay_state) {
            this.o_pay_state = o_pay_state;
        }

        public String getCt_name() {
            return ct_name;
        }

        public void setCt_name(String ct_name) {
            this.ct_name = ct_name;
        }

        public String getOs_name() {
            return os_name;
        }

        public void setOs_name(String os_name) {
            this.os_name = os_name;
        }

        public int getCt_type() {
            return ct_type;
        }

        public void setCt_type(int ct_type) {
            this.ct_type = ct_type;
        }

        public String getJl_name() {
            return jl_name;
        }

        public void setJl_name(String jl_name) {
            this.jl_name = jl_name;
        }

        public String getO_img() {
            return o_img;
        }

        public void setO_img(String o_img) {
            this.o_img = o_img;
        }

        public String getTextO_num(){
            return "共1件商品";
        }
    }
}
